package com.xoms.admin.controller.springmvc.req;


import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 入库-新建、编辑
 **/
public class EditStockInParam {
	@NotEmpty(message = "入库id不能为空")
	private String sid; // 入库单id
	@NotEmpty(message = "仓库id不能为空")
	private String storeHouseId; // 仓库id
	private Integer type; // 入库类型：1冲正入库，充公入库
	private String totalCost; // 修改总金额
	private String remark; // 入库单描述
	private String details; // null
	@Pattern(regexp = "^1|2$", message = "是否提交：1存为草稿2提交审核")
	private String isSubmit; // 是否直接提交审核1存为草稿2提交审核

	public void setSid(String sid) {
 		this.sid = sid;
	}

	public String getSid() {
 		return sid;
	}

	public void setStoreHouseId(String storeHouseId) {
 		this.storeHouseId = storeHouseId;
	}

	public String getStoreHouseId() {
 		return storeHouseId;
	}

	public void setType(Integer type) {
 		this.type = type;
	}

	public Integer getType() {
 		return type;
	}

	public void setTotalCost(String totalCost) {
 		this.totalCost = totalCost;
	}

	public String getTotalCost() {
 		return totalCost;
	}

	public void setRemark(String remark) {
 		this.remark = remark;
	}

	public String getRemark() {
 		return remark;
	}

	public void setDetails(String details) {
 		this.details = details;
	}

	public String getDetails() {
 		return details;
	}

	public void setIsSubmit(String isSubmit) {
 		this.isSubmit = isSubmit;
	}

	public String getIsSubmit() {
 		return isSubmit;
	}

}
